cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
set(CURSES_NEED_NCURSES TRUE)
find_package(Curses REQUIRED)
find_package(CDK REQUIRED)
include_directories(${CDK_INCLUDE_DIR})
add_executable(farwest 
  main.cpp 
  terminal.cpp 
  window.cpp 
  editbox.cpp 
  _mediator.cpp 
  color.cpp)
target_link_libraries(farwest ${CDK_LIBRARY} ${CURSES_NCURSES_LIBRARY})

add_executable(colormap colormap.cpp terminal.cpp) 
target_link_libraries(colormap ${CURSES_NCURSES_LIBRARY} ${CDK_LIBRARY})
